//
//  myToolbarController.h
//  iSwitchView
//
//  Created by Ronnie on 08-11-19.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "myToolbarView.h"
#import "FXDataCenter.h"
#import "MainAppController.h"
#import "MainWindowController.h"
//@class MainWindowController;
//@class MainAppController;


@interface myToolbarController : NSObject {
	IBOutlet id						theWindow;
	IBOutlet myToolbarView*			UserInfoView;
	IBOutlet NSImageView*			stateImage;
	IBOutlet NSImageView*			UserHeadImage;
	IBOutlet NSPopUpButton*			statesList;
	IBOutlet NSMenu*				statesMenu;
	IBOutlet NSTextField*			NickName;
	IBOutlet NSTextField*			Impresa;
	NSMenuItem*						activeItem;
	
	MainWindowController *			mainWindowCtrl;
	MainAppController*				mainAppCtrl;
}

- (IBAction)onStatusChange:(id)sender;
- (void)setMainWindowController:(MainWindowController*)p;
- (void)setMainAppController:(MainAppController*)p;
- (void)setMyInfo;

- (IBAction)hostChangeImpresa:(id)sender;
- (void)stateChangeTo:(NSString*)status;
- (void)updateViewByStatus:(FXSysMessage*)sysMessage;

@end
